﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Monocle.Models.ControlPanel
{
    public class ChangePasswordViewModel
    {
        public String Email { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "UserCPViewModel_NewPassword_OldPassword", ResourceType = typeof(Resources.Monocle))]
        public String OldPassword { get; set; }

        [Display(Name = "UserCPViewModel_NewPassword_Password", ResourceType = typeof(Resources.Monocle))]
        [DataType(DataType.Password)]
        public String Password { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "UserCPViewModel_NewPassword_ConfirmationPassword", ResourceType = typeof(Resources.Monocle))]
        [Compare("Password", ErrorMessageResourceName = "UserCPViewModel_NewPassword_Mismatch", ErrorMessageResourceType = typeof(Resources.Monocle))]
        public string ConfirmPassword { get; set; }
    }
}